<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.link.manage_link}</h3>
        <ul class="tab1">
            <li><a href="__URL__/linkList"><span>{$Think.lang.link.all_link}</span></a></li>
            <li class="current"><empty name="rs"><a href="__URL__/addLink"><span>{$Think.lang.link.add_link}</span></a><else/><a href="__URL__/editLink/link_id/{$rs.link_id}"><span>{$Think.lang.link.edit_link}</span></a></empty></li>
        </ul>
    </div>
    <form name="cpform" method="post" action="__URL__/editLink">
    <input type="hidden" name="op" value="save" />
    <input type="hidden" name="link_id" value="{$rs.link_id}" />
    <table class="tb tb2">
        <tr class="nobg"><td colspan="2" class="td27"> {$Think.lang.name}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="name" value="{$rs.name}" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.link.link_name_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.url}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="url" value="{$rs.url}" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.link.link_url_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.link.logo}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="logo" value="{$rs.logo}" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.link.link_logo_explain} </td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.display_order}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="order" value="{$rs.order}" type="text" class="txt" /></td>
            <td class="vtop tips2">{$Think.lang.display_order_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.description}:</td></tr>
        <tr>
            <td class="vtop rowform"><textarea  rows="6" onkeyup="textareasize(this)" name="description" id="description" cols="50" class="tarea">{$rs.description}</textarea></td>
            <td class="vtop tips2">{$Think.lang.link.link_desc_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.visible}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <html:radio name="status" radios="linkStatusRadios" checked="linkStatusChecked" separator=" " />
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.target}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <ul class="nofloat" onmouseover="altStyle(this);">
                    <html:radio name="target" radios="linkTargetRadios" checked="linkTargetChecked" separator=" " />
                </ul>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="15"><div class="fixsel"><input class="btn" type="submit" value="{$Think.lang.submit}" /></div></td></tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
